package dataStructer803;

//使用Object接收
/*class MyArray {
    public Object[] array = new Object[10];
    public Object getPos(int pos) {
        return this.array[pos];
    }
    public void setVal(int pos,int val) {
        this.array[pos] = val;
    }
    public void setVal(int pos,String val) {
        this.array[pos] = val;
    }
}
public class Test02 {
    public static void main(String[] args) {
        MyArray myArray = new MyArray();
        myArray.setVal(0,10);
        myArray.setVal(1,"hello");//字符串也可以存放
        String ret = myArray.getPos(1);//编译报错
        System.out.println(ret);
    }
}*/
/*class MyArray<E extends Number> {

}*/
public class Test02 {
/*    public static void main(String[] args) {
        MyArray<Number> numberMyArray = new MyArray<>();
    }*/
public static void main(String[] args) {
    Integer a = 127;
    Integer b = 127;
    Integer c = 128;
    Integer d = 128;
    System.out.println(a == b);
    System.out.println(c == d);
}
}
